#pragma once
#include "List.h"
#include <string>
#include <fstream>

using namespace std;
class ServerProc
{
private:
	List buffer;
public:
	ServerProc(void);
	~ServerProc(void);
	int nickNameProc(char nick[],char** nickname,int n); 
	// -1: chua nhap j may , -2:trung roai, 0:co ki tu ko hop le kia` , 1: ok

	BOOL randomQuestion(int *arrQuestion,int numQR, int numQA);

	BOOL loadQuestion(char *buffer, char *fileName, int line);

	int countPlayer(char** nickname, int n);

	int getLastPlayer(char** nickname, int n);

	int getFirstPlayer(char** nickname, int n);
	
};

